<template>
  <component :is="comp" :formData="formData" v-if="comp" form-bpm></component>
</template>

<script>
  export default {
    name: 'DynamicEoaCms',
    data () {
      return {
        compName: this.path
      }
    },
    computed: {
      comp: function () {
        if (this.path) {
          return () => import(`@/views/${this.path}.vue`)
        } else {
          return null;
        }
      }
    },
    props: ['path', 'formData']
  }
</script>

<style scoped>

</style>
